package com.sale.system.dubbo;

import com.sale.common.core.domain.R;
import com.sale.system.api.RemoteReviewService;
import com.sale.system.api.domain.vo.SysAuditHistoryVo;
import com.sale.system.service.ISysExamineService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;


/**
 * 审核
 */
@RequiredArgsConstructor
@Service
@DubboService
public class RemoteReviewServiceImpl implements RemoteReviewService {

    private final ISysExamineService sysExamineService;

    /**
     * 根据权限码审核
     * @param sysAuditHistoryVo
     * @return
     * @throws Exception
     */
    @Override
    public int getSequence(SysAuditHistoryVo sysAuditHistoryVo) throws Exception {
        return sysExamineService.getSequence(sysAuditHistoryVo);
    }

    /**
     * 修改审核历史数据
     * @param sysAuditHistoryVo
     * @return
     */
    @Override
    public int editHistory(SysAuditHistoryVo sysAuditHistoryVo) {
        return sysExamineService.updateHistoryAppConfigEdit(sysAuditHistoryVo);
    }
}
